package com.bigmodel.controller;

import cn.hutool.core.util.RandomUtil;
import cn.hutool.http.HttpUtil;
import cn.hutool.json.JSON;
import cn.hutool.json.JSONObject;
import cn.hutool.json.JSONUtil;
import com.bigmodel.vo.ResponseResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;


@RestController
@RequestMapping("/webchat")
@Slf4j
public class WebChatController {

    /**
     * 获取用户信息
     * @param code
     * @return
     */
    @GetMapping("/getuserinfo")
    public ResponseResult getuserinfo(@RequestParam String code) {
        return  new ResponseResult().setData(WebChatService.getuserinfo(code));
    }



}
